<script type="text/javascript">
    function comprobar_formulario(id, form) {

        if (form['fiscal_id'].value != document.getElementById('form_fiscal_id_' + id).value || form['name'].value != document.getElementById('form_name_' + id).value || form['commercial_name'].value != document.getElementById('form_commercial_name_' + id).value) {
            form['fiscal_id'].value = document.getElementById('form_fiscal_id_' + id).value;
            form['name'].value = document.getElementById('form_name_' + id).value
            form['commercial_name'].value = document.getElementById('form_commercial_name_' + id).value;

            if (confirm('¿guardar los cambios en los datos?')) {
                form['quote_update'].value = "1";
                return true;
            }
        }

        return false;
    }
</script>